package edu.xaut.bookingsys.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
public  enum EnumCourse{

    Task(1,"教务计划"),
    OpenCourse(2,"开放课程"),
    Examination(3,"考试"),
    Train(4,"集训开放"),
    ClassDesign(5,"课设开放"),
    Others(6,"其他开放"); // 教务任务，申请，考试，集训、课设
    EnumCourse(Integer id,String name){
        this.id = id;
        this.name = name;
    }
    @EnumValue
    final private Integer id;
    @JsonValue
    final private String name;
}